//
//  SHSingleton.m
//  UI_CarHome
//
//  Created by dllo on 15/11/1.
//  Copyright (c) 2015年 沈浩. All rights reserved.
//

#import "SHSingleton.h"

@implementation SHSingleton

+ (instancetype)shareSingletion {
    static SHSingleton *single;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        single = [[SHSingleton alloc] init];
        NSUserDefaults *isDayDafault = [NSUserDefaults standardUserDefaults];
        single.isNight = [[isDayDafault objectForKey:@"isNight"] integerValue];

    });
    return single;
}

@end
